package com.zhuoyue.biz.core.api.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhuoyue.biz.core.api.domain.base.BaseDoClass;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 自动化实体类
 *
 * @author Administrator
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("tbl_automate")
public class AutomateDO extends BaseDoClass {
    /**
     * 所属家庭ID
     */
    @TableField(value = "`home_id`")
    private String homeId;



    @TableField(value = "`gateway_mac`")
    private String gatewayMac;

    /**
     * 自动化名称
     */
    @TableField(value = "`name`")

    private String name;

    /**
     * 图片地址
     */
    @TableField(value = "`img_url`")

    private String imgUrl;

    /**
     * 写入网关的编码
     */
    @TableField(value = "`code`")
    private Integer code;


    /**
     * 自动化执行时间
     */
    @TableField(value = "`trigger_time`")
    private String triggerTime;


    /**
     * 触发设备状态信息
     */
    @TableField(value = "`trigger_device_state`")
    private String triggerDeviceState;

    /**
     * 执行设备信息
     */
    @TableField(exist = false)
    private String executeDeviceState;

    @TableField(value = "`defend_status`")
    private String defendStatus;

    /**
     * 触发类型:
     * 1:某一个是开的状态触发
     * 2:全部是关的状态触发
     */
    @TableField(value = "`trigger_type`")
    private Integer triggerType;

    /**
     * 1:本地自动化
     * 2：远程组合自动化
     */
    @TableField(value = "`automate_type`")
    private Integer automateType;

}
